<?php $this->load->view('admins/header'); ?>
<?php $this->load->view('admins/menu'); ?>
<div class="container conter">
    <?php $this->load->view('admins/merchandise/menu'); ?>
    <div class="body">
        <div class="main">
            <table>
                <tr>
                    <th>ID</th>
                    <th><?php echo lang('mer_type'); ?></th>
                    <th><?php echo lang('mer_name'); ?></th>
                    <th><?php echo lang('mer_moq'); ?></th>
                    <th><?php echo lang('mer_price'); ?></th>
                    <th><?php echo lang('mer_edtime'); ?></th>
                    <th>操作</th>
                </tr>
                <?php foreach($merchandises as $mer): ?>
                <tr>
                    <td><?php echo $mer['mer_id'] ?></td>
                    <td><?php echo $mer['mer_type'] ?></td>
                    <td><?php echo $mer['mer_name'] ?></td>
                    <td><?php echo $mer['mer_moq'] ?></td>
                    <td><?php echo $mer['mer_price'] ?></td>
                    <td><?php echo date('Y-m-d H:i:s', $mer['mer_edtime']) ?></td>
                    <td>
                        <?php echo anchor('admins/merchandise/delete/'.$mer['mer_id'], '删除'); ?>
                        &nbsp;&nbsp;|&nbsp;&nbsp;<?php echo anchor('admins/merchandise/edit/'.$mer['mer_id'], '编辑'); ?>
                    </td>
                </tr>
                <?php endforeach; ?>
            </table>
            <p class="pages"><?php echo $this->pagination->create_links(); ?></p>
        </div>
    </div>
</div>
<?php $this->load->view('admins/footer'); ?>